package com.antonauoja.javaril;

class AddLinkRequest extends ApiRequest {

	private String url = "";
	private String title = "";
	
	@Override
	String getRequestURL() {
		
		return String.format(ADD_URL,
				cred.getUsername(),
				cred.getPassword(),
				cred.getApiKey(),
				url,
				title);

	}

	public void setLink(String url) {
		this.url = url;
		this.title = "Untitled";
	}
	
	public void setLink(String url, String title) {
		this.url = url;
		this.title = title;
	}
}
